package com.ruoyi.common.core.domain.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 用户登录对象
 * 
 * @author ruoyi
 */
@Data
@ApiModel("登录请求模型")
public class LoginBody {

    @NotBlank(message = "账号不能为空")
    @ApiModelProperty(value = "账号", required = true)
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @ApiModelProperty(value = "验证码 android和pc不用传")
    private String code;

    @ApiModelProperty(value = "唯一标识  android和pc不用传")
    private String uuid;

    @ApiModelProperty(value = "设备类型 1:web 2:android 3:pc", required = true)
    private int type;
}
